package model;

/**
 * 管理员实体类，用于表示系统中的管理员信息
 */
public class Admin {
    private int adminId;         // 管理员唯一标识
    private String adminName;    // 管理员名称
    private String password;     // 管理员密码

    // 无参构造方法
    public Admin() {}

    // 带参构造方法
    public Admin(int adminId, String adminName, String password) {
        this.adminId = adminId;
        this.adminName = adminName;
        this.password = password;
    }

    // Getter 和 Setter 方法
    public int getAdminId() {
        return adminId;
    }

    public void setAdminId(int adminId) {
        this.adminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "adminId=" + adminId +
                ", adminName='" + adminName + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}